---
title: Change Log
---

## 1.2.7

1. fix: rtl
2. fix: custom render node offset NaN
3. fix: swipe behavior in non-webkit browsers

## 1.2.6

1. fix: On mobile, the image width and height units are converted in the framework of the rax class

## 1.2.5

1. fix: Chrome version 125 or later cannot be dragged issue

## 1.2.4

1. feat: The PhotoView subcomponent supports exporting refs
2. fix: The isActive attribute judgment issue

## 1.2.3

feat: Provides `onClick` and `onDoubleClick` optional binding events

## 1.2.1

fix: Custom rendering example fixes
fix: maskOpacity set null background does not respond to drop-down changes

## 1.2.0

feat: configurable react portal container

## 1.1.2

fix: Force LTR only

## 1.1.1

fix: Type

## 1.1.0

1. feat: Added `overlay` parameter to PhotoView
2. fix: Remove css sourceMap
3. fix: Fix the problem that the right button of the picture triggers dragging

## 1.0.0

1. fix: `loadingElement` position problem
2. fix: Image enlargement limit optimization
3. fix: In a few models, the picture cannot be previewed

## 1.0.0-beta.8

1. fix: Inaccurate zoom position after `onScale` API call
2. fix: `scale` and `rotate` states are not preserved after resizing image removal

## 1.0.0-beta.7

1. fix: Long image mode bug fixes and new examples
2. fix: Elastic touch animation optimization
3. fix: `scale`, `rotate` are empty problem
4. style: Bundle size optimization

## 1.0.0-beta.6

1. feat: Add API `afterClose`
2. fix: Detail fix

## 1.0.0-beta.5

fix: Cover animation detail adjustment

## 1.0.0-beta.4

features:

1. Perfect connection open and close animation
2. Automatically recognize `object-fit` image fill pattern animation
3. Added `speed`, `easing` API
4. Other element animation `opacity` downgrade handling

break changes:

1. Adjust image centering logic
2. Change CSS a little name

fix:

1. Import error in `next.js`
2. Turn off animation pointing problem after zooming in

## 1.0.0-beta.0

Refactoring logic based on `hooks`

features:

1. Simulate physical scrolling preview with bounce
2. Delay update width and height after resizing
3. Support `loop` loop preview
4. Support for `render` custom preview elements
5. Added parameter `maskOpacity` to support custom background default transparency

break changes:

1. `PhotoConsumer` name changed to `PhotoView`
2. `DataType` removes the `intro` field, removes the parameter `introVisible`
3. `viewClassName` parameter name changed to `photoWrapClassName`
4. `imageClassName` parameter name changed to `photoClassName`
5. `key` in `DataType` is a required field

others:

Fix many details
